<template>
  <div id="demo" class="carousel slide" data-ride="carousel">
    <!-- 指示符 -->
    <ul class="carousel-indicators">
      <li data-target="#demo" data-slide-to="0" class="active"></li>
      <li data-target="#demo" data-slide-to="1"></li>
      <li data-target="#demo" data-slide-to="2"></li>
      <li data-target="#demo" data-slide-to="3"></li>
    </ul>

    <!-- 轮播图片 -->
    <div class="carousel-inner">
      <div class="carousel-item active carousel-bg2">
        <img src="/banner1.jpg" style="width: 100%" />
      </div>

      <div class="carousel-item carousel-bg2">
        <img src="/banner2.jpg" style="width: 100%" />
      </div>
      <div class="carousel-item carousel-bg2">
        <img src="/banner3.jpg" style="width: 100%" />
      </div>
      <div class="carousel-item carousel-bg2">
        <img src="/banner4.jpg" style="width: 100%" />
      </div>
    </div>
    <!-- 左右切换按钮 -->
    <a class="carousel-control-prev" href="#demo" data-slide="prev">
      <span class="carousel-control-prev-icon"></span>
    </a>
    <a class="carousel-control-next" href="#demo" data-slide="next">
      <span class="carousel-control-next-icon"></span>
    </a>
  </div>
  <!-- 轮播图结束 -->
</template>
